.page_disabled {
    width: 100%;
    height: 100%;
    background: rgba(30, 31, 41, 0.92);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
    padding: 20px; /* 添加内边距确保在小屏幕上不贴边 */
    box-sizing: border-box; /* 确保内边距不影响整体尺寸 */
}

.access_denied_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #2a2b36;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
    box-sizing: border-box;
    max-height: 95vh; // 防止超出屏幕高度
    overflow: hidden;

    @media (max-height: 600px) {
        padding: 30px 20px; // 高度较低时减少内边距
        max-height: 90vh; // 更多空间给外部布局
    }

    @media (max-width: 768px), (max-height: 700px) {
        padding: 30px 20px;
    }

    @media (max-width: 480px), (max-height: 500px) {
        padding: 20px 15px;
    }
    
    .denied_icon::before,
    .denied_icon::after {
        content: "";
        position: absolute;
        height: 16px;
        background: #fff;
        border-radius: 8px;
        width: 80%; /* 相对图标尺寸 */
    }
    
    .denied_title {
        font-size: 2rem; /* 使用相对单位 */
        font-weight: 700;
        margin: 0;
        color: #fff;
        background: linear-gradient(to right, #ff6b6b, #ed4245);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        @media (max-width: 768px) {
            font-size: 1.8rem;
        }

        @media (max-width: 480px) {
            font-size: 1.5rem;
        }
        @media (max-height: 600px) {
            font-size: 1.5rem;
        }
    }
    
    .denied_message {
        padding: 0 20px;
        font-size: 1.1rem; /* 使用相对单位 */
        margin: 0;
        line-height: 1.6;
        color: var(--text-secondary);

        @media (max-width: 480px) {
            font-size: 1rem;
        }
        @media (max-height: 600px) {
            font-size: 0.95rem;
            line-height: 1.4;
        }
    }
    
    
    .permission_list {
        background: rgba(64, 68, 75, 0.3);
        padding: 20px;
        border-radius: 10px;
        text-align: left;
        width: 90%; /* 宽度自适应 */
        max-width: 500px; /* 设置最大宽度 */
        box-sizing: border-box;

        @media (max-width: 768px) {
            padding: 15px;
            width: 100%;
        }
        @media (max-height: 600px) {
            padding: 15px;
            
            h3 {
                font-size: 1.1rem;
            }
            
            li {
                padding: 8px 0;
                font-size: 0.85rem;
            }
        }
        
        @media (max-height: 400px) {
            padding: 10px;
            
            li {
                padding: 6px 0;
                font-size: 0.75rem;
            }
            
            li:before {
                font-size: 16px;
            }
        }

        h3 {
            color: var(--text-primary);
            font-weight: 600;
            font-size: 1.2rem;
        }
        
        ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        
        li {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            font-size: 0.95rem;

            @media (max-width: 480px) {
                font-size: 0.85rem;
                padding: 8px 0;
            }
        }
        
        li:last-child {
            border-bottom: none;
        }
        
        li:before {
            content: "•";
            color: var(--danger);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-right: 10px;
            font-size: 20px;
        }
    }
    
    .support_text {
        font-size: 0.9rem;
        color: var(--text-tertiary);

        @media (max-width: 480px) {
            font-size: 0.8rem;
        }
        
        a {
            color: var(--primary);
            text-decoration: none;
        }
        @media (max-height: 600px) {
            font-size: 0.8rem;
        }
    }
}